home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 12767 < prev    next >
Mailbox/MIME Entity  |  1996-08-05  |  1.8 KB

open in: MacOS 8.1     |     Win98     |     DOS

browse contents    |     view JSON data     |     view as text


This file was processed as: Mailbox/MIME Entity (archive/mbox).

ConfidenceProgramDetectionMatch TypeSupport
100% dexvert Newsgroup Content (archive/news) magic Supported
100% dexvert Mailbox/MIME Entity (archive/mbox) magic Supported
100% dexvert Internet Message Format (text/imf) magic Supported
1% dexvert Text File (text/txt) fallback Supported
100% file news, ASCII text default
100% checkBytes Printable ASCII default
100% dexmagic PrintFox/Pagefox WEAK default
100% perlTextCheck Likely Text (Perl) default
100% siegfried fmt/950 MIME Email (1.0) default
100% detectItEasy Format: plain text[LF] default (weak)
100% xdgMime message/news default



hex view
+--------+-------------------------+-------------------------+--------+--------+
|00000000| 50 61 74 68 3a 20 72 65 | 64 2e 77 65 65 67 2e 75 |Path: re|d.weeg.u|
|00000010| 69 6f 77 61 2e 65 64 75 | 21 72 6f 62 69 6e 73 6f |iowa.edu|!robinso|
|00000020| 6e 0a 46 72 6f 6d 3a 20 | 54 68 65 20 41 6d 6f 72 |n.From: |The Amor|
|00000030| 70 68 6f 75 73 20 4d 61 | 73 73 20 3c 72 6f 62 69 |phous Ma|ss <robi|
|00000040| 6e 73 6f 6e 40 62 6c 75 | 65 2e 77 65 65 67 2e 75 |nson@blu|e.weeg.u|
|00000050| 69 6f 77 61 2e 65 64 75 | 3e 0a 4e 65 77 73 67 72 |iowa.edu|>.Newsgr|
|00000060| 6f 75 70 73 3a 20 63 6f | 6d 70 2e 6c 61 6e 67 2e |oups: co|mp.lang.|
|00000070| 63 0a 53 75 62 6a 65 63 | 74 3a 20 52 65 3a 20 48 |c.Subjec|t: Re: H|
|00000080| 65 6c 70 21 20 43 61 6e | 27 74 20 72 65 61 64 20 |elp! Can|'t read |
|00000090| 69 6e 70 75 74 20 66 72 | 6f 6d 20 6b 65 79 62 6f |input fr|om keybo|
|000000a0| 61 72 64 21 0a 44 61 74 | 65 3a 20 54 75 65 2c 20 |ard!.Dat|e: Tue, |
|000000b0| 32 20 41 70 72 20 31 39 | 39 36 20 31 32 3a 33 31 |2 Apr 19|96 12:31|
|000000c0| 3a 34 32 20 2d 30 36 30 | 30 0a 4f 72 67 61 6e 69 |:42 -060|0.Organi|
|000000d0| 7a 61 74 69 6f 6e 3a 20 | 55 6e 69 76 65 72 73 69 |zation: |Universi|
|000000e0| 74 79 20 6f 66 20 49 6f | 77 61 2c 20 49 6f 77 61 |ty of Io|wa, Iowa|
|000000f0| 20 43 69 74 79 2c 20 49 | 41 2c 20 55 53 41 0a 44 | City, I|A, USA.D|
|00000100| 69 73 74 72 69 62 75 74 | 69 6f 6e 3a 20 77 6f 72 |istribut|ion: wor|
|00000110| 6c 64 0a 4d 65 73 73 61 | 67 65 2d 49 44 3a 20 3c |ld.Messa|ge-ID: <|
|00000120| 50 69 6e 65 2e 41 33 32 | 2e 33 2e 39 31 2e 39 36 |Pine.A32|.3.91.96|
|00000130| 30 34 30 32 31 32 32 36 | 30 37 2e 31 36 38 35 31 |04021226|07.16851|
|00000140| 49 2d 31 30 30 30 30 30 | 40 72 65 64 2e 77 65 65 |I-100000|@red.wee|
|00000150| 67 2e 75 69 6f 77 61 2e | 65 64 75 3e 0a 52 65 66 |g.uiowa.|edu>.Ref|
|00000160| 65 72 65 6e 63 65 73 3a | 20 3c 34 6a 71 30 74 73 |erences:| <4jq0ts|
|00000170| 24 35 6d 68 40 74 61 6e | 69 65 6d 61 72 69 65 2e |$5mh@tan|iemarie.|
|00000180| 73 6f 6c 6f 6e 2e 63 6f | 6d 3e 20 3c 34 6a 72 65 |solon.co|m> <4jre|
|00000190| 36 65 24 6f 70 31 40 6c | 69 6e 65 74 30 36 2e 6c |6e$op1@l|inet06.l|
|000001a0| 69 2e 6e 65 74 3e 0a 4e | 4e 54 50 2d 50 6f 73 74 |i.net>.N|NTP-Post|
|000001b0| 69 6e 67 2d 48 6f 73 74 | 3a 20 72 65 64 2e 77 65 |ing-Host|: red.we|
|000001c0| 65 67 2e 75 69 6f 77 61 | 2e 65 64 75 0a 4d 69 6d |eg.uiowa|.edu.Mim|
|000001d0| 65 2d 56 65 72 73 69 6f | 6e 3a 20 31 2e 30 0a 43 |e-Versio|n: 1.0.C|
|000001e0| 6f 6e 74 65 6e 74 2d 54 | 79 70 65 3a 20 54 45 58 |ontent-T|ype: TEX|
|000001f0| 54 2f 50 4c 41 49 4e 3b | 20 63 68 61 72 73 65 74 |T/PLAIN;| charset|
|00000200| 3d 55 53 2d 41 53 43 49 | 49 0a 58 2d 53 65 6e 64 |=US-ASCI|I.X-Send|
|00000210| 65 72 3a 20 72 6f 62 69 | 6e 73 6f 6e 40 72 65 64 |er: robi|nson@red|
|00000220| 2e 77 65 65 67 2e 75 69 | 6f 77 61 2e 65 64 75 0a |.weeg.ui|owa.edu.|
|00000230| 49 6e 2d 52 65 70 6c 79 | 2d 54 6f 3a 20 3c 34 6a |In-Reply|-To: <4j|
|00000240| 72 65 36 65 24 6f 70 31 | 40 6c 69 6e 65 74 30 36 |re6e$op1|@linet06|
|00000250| 2e 6c 69 2e 6e 65 74 3e | 20 0a 0a 4f 6e 20 32 20 |.li.net>| ..On 2 |
|00000260| 41 70 72 20 31 39 39 36 | 2c 20 4a 65 72 65 6d 79 |Apr 1996|, Jeremy|
|00000270| 20 4d 61 72 6b 6d 61 6e | 20 77 72 6f 74 65 3a 0a | Markman| wrote:.|
|00000280| 0a 3e 20 50 65 74 65 72 | 20 53 65 65 62 61 63 68 |.> Peter| Seebach|
|00000290| 20 28 73 65 65 62 73 40 | 74 61 6e 69 65 6d 61 72 | (seebs@|taniemar|
|000002a0| 69 65 2e 73 6f 6c 6f 6e | 2e 63 6f 6d 29 20 77 72 |ie.solon|.com) wr|
|000002b0| 6f 74 65 3a 0a 3e 20 3a | 20 49 20 67 75 65 73 73 |ote:.> :| I guess|
|000002c0| 20 49 20 74 68 6f 75 67 | 68 74 20 49 20 6b 6e 65 | I thoug|ht I kne|
|000002d0| 77 20 43 2c 20 62 75 74 | 20 6d 61 79 62 65 20 6e |w C, but| maybe n|
|000002e0| 6f 74 2e 20 20 54 68 65 | 20 66 6f 6c 6c 6f 77 69 |ot. The| followi|
|000002f0| 6e 67 20 70 72 6f 67 72 | 61 6d 20 63 6f 6d 70 69 |ng progr|am compi|
|00000300| 6c 65 73 0a 3e 20 0a 3e | 20 4d 61 79 62 65 20 4e |les.> .>| Maybe N|
|00000310| 6f 74 2e 2e 2e 0a 0a 20 | 20 3a 2d 29 0a 0a 3e 20 |ot..... | :-)..> |
|00000320| 46 69 72 73 74 2c 20 74 | 68 65 20 73 73 63 61 6e |First, t|he sscan|
|00000330| 66 28 29 20 66 75 6e 63 | 74 69 6f 6e 20 77 69 6c |f() func|tion wil|
|00000340| 6c 20 72 65 61 64 20 69 | 6e 20 69 6e 70 75 74 20 |l read i|n input |
|00000350| 66 72 6f 6d 20 61 20 73 | 74 72 69 6e 67 2e 20 20 |from a s|tring. |
|00000360| 59 6f 75 20 64 69 64 20 | 0a 3e 20 6e 6f 74 20 73 |You did |.> not s|
|00000370| 70 65 63 69 66 79 20 61 | 20 73 74 72 69 6e 67 2c |pecify a| string,|
|00000380| 20 77 68 69 63 68 20 69 | 73 20 77 68 79 20 79 6f | which i|s why yo|
|00000390| 75 20 67 6f 74 20 61 6e | 20 65 72 72 6f 72 20 6f |u got an| error o|
|000003a0| 72 69 67 69 6e 61 6c 6c | 79 20 77 68 65 6e 20 0a |riginall|y when .|
|000003b0| 3e 20 63 6f 6d 70 69 6c | 69 6e 67 2e 0a 0a 20 20 |> compil|ing... |
|000003c0| 48 65 20 64 69 64 6e 27 | 74 20 63 61 6c 6c 20 73 |He didn'|t call s|
|000003d0| 73 63 61 6e 66 28 29 20 | 69 6e 20 74 68 65 20 6f |scanf() |in the o|
|000003e0| 72 69 67 69 6e 61 6c 20 | 63 6f 64 65 2c 20 73 6f |riginal |code, so|
|000003f0| 20 68 65 20 64 69 64 6e | 27 74 20 70 61 73 73 20 | he didn|'t pass |
|00000400| 61 6e 79 20 0a 70 61 72 | 61 6d 65 74 65 72 73 20 |any .par|ameters |
|00000410| 74 6f 20 69 74 2e 20 20 | 67 63 63 20 6f 6e 6c 79 |to it. |gcc only|
|00000420| 20 63 6f 6d 70 6c 61 69 | 6e 65 64 20 74 77 69 63 | complai|ned twic|
|00000430| 65 20 61 62 6f 75 74 20 | 22 73 74 61 74 65 6d 65 |e about |"stateme|
|00000440| 6e 74 20 68 61 73 20 6e | 6f 20 0a 65 66 66 65 63 |nt has n|o .effec|
|00000450| 74 2c 22 20 62 75 74 20 | 69 74 20 63 6f 6d 70 69 |t," but |it compi|
|00000460| 6c 65 64 20 74 68 65 20 | 63 6f 64 65 2e 20 20 59 |led the |code. Y|
|00000470| 6f 75 20 6d 69 67 68 74 | 20 68 61 76 65 20 6e 6f |ou might| have no|
|00000480| 74 69 63 65 64 20 74 68 | 65 20 74 79 70 6f 20 0a |ticed th|e typo .|
|00000490| 22 2d 57 61 2c 6c 6c 22 | 20 69 6e 20 74 68 65 20 |"-Wa,ll"| in the |
|000004a0| 69 6e 76 6f 63 61 74 69 | 6f 6e 20 6f 66 20 67 63 |invocati|on of gc|
|000004b0| 63 2e 0a 0a 3e 20 53 65 | 63 6f 6e 64 2c 20 75 73 |c...> Se|cond, us|
|000004c0| 69 6e 67 20 73 63 61 6e | 66 28 29 2c 20 65 76 65 |ing scan|f(), eve|
|000004d0| 6e 20 77 68 65 6e 20 75 | 73 65 64 20 63 6f 72 72 |n when u|sed corr|
|000004e0| 65 63 74 6c 79 2c 20 69 | 73 20 6e 6f 74 20 72 65 |ectly, i|s not re|
|000004f0| 63 6f 6d 6d 65 6e 64 65 | 64 20 66 6f 72 20 0a 3e |commende|d for .>|
|00000500| 20 72 65 61 64 69 6e 67 | 20 69 6e 20 75 73 65 72 | reading| in user|
|00000510| 20 69 6e 70 75 74 2e 20 | 20 55 73 65 20 74 68 65 | input. | Use the|
|00000520| 20 67 65 74 63 68 28 29 | 20 66 75 6e 63 74 69 6f | getch()| functio|
|00000530| 6e 20 74 6f 20 72 65 61 | 64 20 69 6e 20 6f 6e 65 |n to rea|d in one|
|00000540| 20 63 68 61 72 61 63 74 | 65 72 20 0a 3e 20 61 74 | charact|er .> at|
|00000550| 20 61 20 74 69 6d 65 20 | 66 72 6f 6d 20 74 68 65 | a time |from the|
|00000560| 20 6b 65 79 62 6f 61 72 | 64 2c 20 74 68 65 6e 20 | keyboar|d, then |
|00000570| 70 61 72 73 65 20 74 68 | 65 20 63 68 61 72 61 63 |parse th|e charac|
|00000580| 74 65 72 73 20 79 6f 75 | 20 72 65 61 64 20 69 6e |ters you| read in|
|00000590| 20 74 6f 20 0a 3e 20 6d | 61 6b 65 20 73 75 72 65 | to .> m|ake sure|
|000005a0| 20 79 6f 75 20 61 72 65 | 20 67 65 74 74 69 6e 67 | you are| getting|
|000005b0| 20 74 68 65 20 69 6e 70 | 75 74 20 79 6f 75 20 61 | the inp|ut you a|
|000005c0| 72 65 20 6c 6f 6f 6b 69 | 6e 67 20 66 6f 72 2e 0a |re looki|ng for..|
|000005d0| 0a 20 20 42 7a 7a 7a 74 | 2e 20 20 67 65 74 63 68 |. Bzzzt|. getch|
|000005e0| 28 29 20 69 73 20 6e 6f | 74 20 70 61 72 74 20 6f |() is no|t part o|
|000005f0| 66 20 74 68 65 20 43 20 | 6c 61 6e 67 75 61 67 65 |f the C |language|
|00000600| 2e 0a 0a 20 20 4a 65 72 | 65 6d 79 2c 20 79 6f 75 |... Jer|emy, you|
|00000610| 20 6a 75 73 74 20 70 6f | 73 74 65 64 20 61 6e 20 | just po|sted an |
|00000620| 69 6e 63 6f 72 72 65 63 | 74 20 61 6e 73 77 65 72 |incorrec|t answer|
|00000630| 20 74 6f 20 61 6e 20 41 | 70 72 69 6c 20 46 6f 6f | to an A|pril Foo|
|00000640| 6c 73 20 70 72 61 6e 6b | 2e 20 3a 2d 29 20 0a 0a |ls prank|. :-) ..|
|00000650| 2f 2a 2a 4a 61 6d 65 73 | 20 52 6f 62 69 6e 73 6f |/**James| Robinso|
|00000660| 6e 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |n*******|********|
|00000670| 2a 2a 2a 2a 2a 2a 2a 2a | 20 20 20 20 20 20 20 20 |********| |
|00000680| 20 20 20 20 0a 20 20 22 | 49 66 20 61 20 66 61 74 | . "|If a fat|
|00000690| 61 6c 20 65 72 72 6f 72 | 20 6f 63 63 75 72 73 2c |al error| occurs,|
|000006a0| 20 74 68 65 20 70 72 6f | 67 72 61 6d 20 73 68 6f | the pro|gram sho|
|000006b0| 75 6c 64 20 6e 6f 74 20 | 62 65 20 61 6c 6c 6f 77 |uld not |be allow|
|000006c0| 65 64 20 74 6f 20 63 6f | 6e 74 69 6e 75 65 2e 22 |ed to co|ntinue."|
|000006d0| 0a 20 2d 2d 20 4f 72 61 | 63 6c 65 20 50 72 6f 2a |. -- Ora|cle Pro*|
|000006e0| 43 20 55 73 65 72 27 73 | 20 47 75 69 64 65 20 20 |C User's| Guide |
|000006f0| 20 20 20 20 20 20 20 2a | 2a 2a 2a 2a 2a 2a 2a 2a | *|********|
|00000700| 2a 2a 2a 2a 6a 61 6d 65 | 73 2d 72 6f 62 69 6e 73 |****jame|s-robins|
|00000710| 6f 6e 40 75 69 6f 77 61 | 2e 65 64 75 2a 2a 2f 0a |on@uiowa|.edu**/.|
|00000720| 0a 0a 0a | |... | |
+--------+-------------------------+-------------------------+--------+--------+